package com.sunni.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Menu {
    private Long id;

    private String text;

    private String url;

    private Menu parent;

    /*子menu们*/ /*对应tree.json，，必须叫children，，不能叫sonMenus*/
    private List<Menu> children = new ArrayList<>();

    /*访问这个menu，需要的权限*/
    private Permission permission;

}